﻿using System;
using Informant.Contacts;
using Informant.SmsMessaging;

namespace Informant.Clients.DataProviders.Wpf4.InformantService
{
	public partial class Message : IMessage
	{
		public IPhone Sender
		{
			get { return ServiceModelSender; }
			set
			{
				var sender = value as Phone;
				if (sender != null && ServiceModelSender != sender)
				{
					ServiceModelSender = sender;
					RaisePropertyChanged("Sender");
				}
			}
		}
	}
}
